<?php
function _($string)
{
	$numargs = func_num_args();
	$text = Lang::_($string); 
    if ($numargs >= 2) {
    	//$arg_list = func_get_args();
    	//$str = implode(',', $arg_list);
    	//printf($text, $str);
    }
    else 
    {
    	return $text;
    }
    
    
	
}

function get_var($string, $default_value='', $type='')
{
	$result = '';
	$req = array('G' => $_GET,
				 'P' => $_POST, 
				 'C' => $_COOKIE);
	if (!empty($type))
	{
		$reqStr = $req[$type];
		$result = isset($reqStr[$string]) ? $reqStr[$string] : $default_value;
	}
	else 
	{
		foreach($req as $val)
		{
			if (isset($val[$string]))
			{
				$result = $val[$string];
			}
		}
		$result = !empty($result) ? $result : $default_value;
	}
	
	return $result;
	
}